<?php (!defined('IN_SYSTEM') || !defined('ADMIN_PRE')) && exit('Access Denied!');?>
{admintemplate header}
<div class="box">
	<div class="heading">
	<h1>列表</h1>
	<div class="buttons">
	<a href="{url admin.php?m=car&f=index}" class="fr">车源列表</a>
	<a href="{url admin.php?m=car&f=qiugou}" class="fr">求购列表</a>
	<a href="{url admin.php?m=car&f=pinggu}" class="fr current">评估列表</a>
	</div>
	</div>
	<div class="main">


		<div class="search">
			<form name="search" method="get" action="admin.php">
			<input type="hidden" name="m" value="car" />
			<input type="hidden" name="f" value="pinggu" />
				<fieldset>
					<legend>查找</legend>
						关键字：
						<input type="text" name="keyword" size="15" value="<?=urldecode($kw)?>" />
						<input type="submit" name="s" class="button" value="开始查找" />
						<input type="button" class="button" value="显示所有" onclick="window.location.href='admin.php?m=car&f=pinggu'" />
						<a href="{url index.php?m=car&f=pingguadd}"  target="_blank">添加评估信息</a>
				</fieldset>
			</form>
		</div>

		<form name="update" method="post" action="?m=car">
		<table cellspacing="0" class="list" id="list">
			<thead>
				<tr>
					<td width="1" class="center"></td>
					<td width="320">问题</td>
					<td>身份</td>
					<td>联系人</td>
					<td>电话</td>
					<td >发布时间</td>
					<td>状态</td>
					<td>人气</td>
					<td>是否回复</td>
					<td>操作</td>
				</tr>
				</thead>
{loop $datas $row}
				<tr id="row_{$row['id']}">
					<td ><input type="checkbox" name="id[]" value="{$row['id']}" class="checkbox" /></td>
					<td><a href="{url index.php?m=car&f=pinggu&id=$row[id]}" target="_blank">{$row['description']}</a></td>
					<td>{if $row['uid']} {$row['username']} {else}匿名{/if}</td>
					<td>{$row['contact']}</a></td>
					<td>{$row['phone']}</a></td>
					<td>{gdate('Y-m-d',$row['created'])}</a></td>
					<td>{if $row['status']} 通过{else}未通过{/if}</td>
					<td>{$row['views']}</td>
					<td>{if $row['replayed']} 已回复<br/>{gdate('Y-m-d')} {else}未回复{/if}</td>
					<td><a href="{url index.php?m=car&f=pingguadd&id=$row[id]}" target="_blank">回复</a> | <a href="{url admin.php?m=car&f=deletepinggu&id=$row[id]}" target="_blank">删除</a> </td>
				</tr>
{/loop}
				<tr>
					<td class="center"><input type="checkbox" class="checkbox" value="1" name="chkall" onclick="check_all(this)" /></td>
					<td colspan="10"  class="left">全选 
					<input type="radio" name="f" value="checkpinggu"  class="radio" /><label for="delete">审核通过</label> 
					<input type="radio" name="f" value="uncheckpinggu"   class="radio" /><label for="delete">审核不通过</label> 
					<input type="radio" name="f" value="deletepinggu"  class="radio" /><label for="delete">删除</label> 
					<input type="submit" class="button" value="执行操作"/>{$page}</td>
				</tr>
			</table>
		</form>
		
	</div>
</div>
{admintemplate footer}